<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">

</script>
<div class="bjui-pageContent">
	<!-- 查询和编辑公用一个页面，id空：新增，id不空：编辑--
		注意：本系统遵循restful架构，action处理时method严格按照 新增：post 编辑：put 删除:delete 查询：get(默认)
		由于删除和编辑form表单不支持，所以必须在action的url后面增加参数_method=put或_method=delete
	-->
	#if(!$!{record.id})
	<form type="post" action="$!{webPath}/tssy/tsSyResource/add?navTabId=tsSyResourceLiNav&closeCurrent=true"  data-toggle="validate" data-alertmsg="false">
	#else
    <form type="post" action="$!{webPath}/tssy/tsSyResource/update?_method=put&navTabId=tsSyResourceLiNav&closeCurrent=true" data-toggle="validate" data-alertmsg="false">
	#end
        #if(!$!{record.id})
		<input type="hidden" name="id" value="" />
		#else
		<input type="hidden" name="id" value="$!{record.id}"/>
		#end
        <table class="table table-condensed table-hover" width="100%"> 
            <tbody>
            	<tr>
				<td>
					<label for="j-resourceType" class="control-label x85">资源类型：</label>
					<input type="radio" name="resourceType" data-toggle="icheck"
							opertion="EqualTo" value="MENU" #if($!record.resourceType&&$record.resourceType==
							'MENU')checked#end id="jm-resourceType" class="form-control" /><label
							for="jm-resourceType">&nbsp;菜单</label> <input type="radio" name="resourceType" data-toggle="icheck"
							opertion="EqualTo" value="BUTTON" #if($!record.resourceType&&$record.resourceType==
							'BUTTON')checked#end id="jb-resourceType" class="form-control" /><label
							for="jb-resourceType">&nbsp;按钮</label>
				</td>
				<td>
					<label for="j-code" class="control-label x85">code：</label>
					<input type="text" name="code"  value="$!record.code" size="15" id="j-code"/>
				</td>
            	</tr>
            	<tr>
				<td>
					<label for="j-resourceName" class="control-label x85">资源名称：</label>
					
					<input type="text" name="resourceName"  value="$!record.resourceName" size="15" id="j-resourceName"/>
				</td>
            	
				<td>
					<label for="j-remark" class="control-label x85">备注：</label>
					
					<input type="text" name="remark"  value="$!record.remark" size="15" id="j-remark"/>
				</td>
            	
            	</tr>
            	<tr>
				<td>
					<label for="j-pid" class="control-label x85">上级资源：</label>
					
					<input type="text" name="pid"  value="$!record.pid" size="15" id="j-pid"/>
				</td>
            	
				<td>
					<label for="j-url" class="control-label x85">url：</label>
					
					<input type="text" name="url"  value="$!record.url" size="15" id="j-url"/>
				</td>
            	
            	</tr>
            	<tr>
				<td>
					<label for="j-isExtend" class="control-label x85">是否系统外链接：</label>
					
					<input type="text" name="isExtend"  value="$!record.isExtend" size="15" id="j-isExtend"/>
				</td>
            	
				<td>
					<label for="j-rel" class="control-label x85">rel：</label>
					
					<input type="text" name="rel"  value="$!record.rel" size="15" id="j-rel"/>
				</td>
            	
            	</tr>
            	
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">取消</button></li>
        <li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
    </ul>
</div>
